﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Reflection;
using MySkiPatrolEntity;
using MySkiPatrolBLL;

namespace MySkiPatrolWS
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "EventManagement" in code, svc and config file together.
    public class EventManagement : IEventManagement
    {
        private EventBLO bll = new EventBLO();

        public string Version()
        {
            return Assembly.GetExecutingAssembly().GetName().Version.ToString();
        }

        public EventCollection GetEvents(Event data)
        {
            return bll.GetEvents(data);
        }

        public EventCollection GetPublicEvents(Event data)
        {
            return bll.GetPublicEvents(data);
        }

        public Event GetEvent(Event calendarEvent)
        {
            return bll.GetEvent(calendarEvent);
        }

        public Event PutEvent(Event calendarEvent)
        {
            return bll.PutEvent(calendarEvent);
        }
    }
}
